var doubleOfEven = (1..10).filter { e -> e % 2 == 0 }.map { e -> e * 2 }
println(doubleOfEven)

//fun isPrime(n: Int) = n > 1 && (2 until n).none({ i -> n % i == 0 })
fun isPrime(n: Int) = n > 1 && (2 until n).none{ n % it == 0 }
println(isPrime(7))
println(isPrime(8))